
<fieldset><legend>我的分机信息</legend>
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>分机</th>
		<th>呼转</th>

		<th>权限</th>
		<th>呼入</th>
		<th>呼出</th>

		<th>备注</th>
	</tr>
	{[foreach name=outer key=key item=item from=$my]} 
	{[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.exten]}</td>
		<td>{[$item.cf]}</td>

		<td>{[$item.out_t]}</td>
		<td>{[$item.record_in]}</td>
		<td>{[$item.record_out]}</td>

		<td>{[$item.content|truncate:20:"...":true]}</td>
	</tr>
	{[/foreach]}
</table>
</fieldset>

<fieldset><legend>添加分机信息</legend>
<form id="form_add" method="post" action="{[$root]}{[$postLink]}{[$p1]}{[$p2]}&emp={[$emp.id]}"><input type="hidden" name="id"
	value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td align="right">员工：</td>
		<td colspan="3">{[$emp.name]}({[$emp.id]}) {[$emp.mobile]}</td>
	</tr>
	<tr>
		<td width="20%" align="right">分机：</td>
		<td width="80%"><input type="text" name="exten" size="20" value="{[$emp.exten]}"></td>
	</tr>
	<tr>
		<td align="right">呼入：</td>
		<td><select name='record_in'>
			{[html_options options=$recording_option selected=Always]}
		</select></td>
	</tr>
	<tr>
		<td align="right">呼出：</td>
		<td><select name='record_out'>
			{[html_options options=$recording_option selected=Always]}
		</select></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript" src="js/emp/mac/add.js?r={[$smarty.now]}"></script>
